﻿
using System;
using System.ComponentModel;

namespace ApiTest2.Entitys
{

    public class DefaultEnums
    {
        public static Type[] GetEnumTypes()
        {
            return new Type[] {
                typeof(AttrTypeEnum),
                typeof(LinkTypeEnum),
                typeof(ArgTypeEnum),
                typeof(OperationTypeEnum),
                typeof(DictTypeEnum),
                typeof(MsgTypeEnum),
                typeof(RightKeysEnum),
            };
        }
    }


    /// <summary>
    /// 属性类型 枚举
    /// </summary>
    public enum AttrTypeEnum
    {
        文本,
        日期,
        图片,
        颜色,
        链接,
        文件,
        开关
    }


    /// <summary>
    /// 连接类型 枚举
    /// </summary>
    public enum LinkTypeEnum
    {
        /// <summary>
        /// 小程序
        /// </summary>
        [Description("小程序")]
        MP,
        /// <summary>
        /// 网页
        /// </summary>
        [Description("网页")]
        WEB
    }


    /// <summary>
    /// 参数类型 枚举
    /// </summary>
    public enum ArgTypeEnum
    {
        接口,
        选项,
        文本,
        日期,
        数字
    }


    /// <summary>
    /// 操作 枚举
    /// </summary>
    public enum OperationTypeEnum
    {
        新增 = 1,
        修改 = 2,
        新增或修改 = 3,
        删除 = 4,
        其他 = 8
    }


    /// <summary>
    /// 字典类型 枚举
    /// </summary>
    public enum DictTypeEnum
    {
        /// <summary>
        /// 系统配置
        /// </summary>
        [Description("系统配置")]
        SysConfig,
        /// <summary>
        /// 上传目录
        /// </summary>
        [Description("上传目录")]
        Upload,
        /// <summary>
        /// 系统平台
        /// </summary>
        [Description("系统平台")]
        SysPlatform,
        /// <summary>
        /// 轮播广告
        /// </summary>
        [Description("轮播广告")]
        Banner,
        /// <summary>
        /// 银行字典
        /// </summary>
        [Description("银行字典")]
        Bank,
        /// <summary>
        /// 物流公司
        /// </summary>
        [Description("物流公司")]
        Logistics
    }


    /// <summary>
    /// 消息类型 枚举
    /// </summary>
    public enum MsgTypeEnum
    {
        通知,
        公告
    }


    /// <summary>
    /// 权限键 枚举
    /// </summary>
    public enum RightKeysEnum
    {
        Owner = 1,
        Add = 2,
        Edit = 4,
        Delete = 8,
        Import = 16,
        Export = 32,
        Special = 64
    }

}